package singleCrud

import (
	"context"
	"github.com/gogf/gf/v2/frame/g"
)

func Render(ctx context.Context,value string)(err error){
	var (
		tpl = "internal/controller/controller_CoedAuto/singleCrud/template/index.html"
	)
	DataMap,err1 := getData(value)
	if err1 != nil {
		g.Dump("报错了,错误原因如下",err1.Error())
		return err1
	}
	err = g.RequestFromCtx(ctx).Response.WriteTpl(tpl,DataMap)
	return err
}
